package simple.flow.modules.system.dto.login;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 注册请求参数
 *
 * @author lhd
 * @since 2025/4/8 10:52
 */

@Data
public class RegisterDTO {

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "电话")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "确认密码")
    private String confirmPassword;

    @Schema(description = "验证码(图片验证码或短信验证码或邮箱验证码)")
    private String captchaCode;

    @Schema(description = "注册模式 pwd 密码模式，sms 短信模式，email 邮箱模式")
    @NotEmpty(message = "注册模式不能为空")
    private String registerMode;

}
